const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode:"development",
    devtool:"source-map",
    devServer:{
        open: true,
    },
    module:{
        rules:[
            {
                test:/\.less$/,
                use:['style-loader','css-loader','less-loader']
            },
            {
                test:/\.css$/,
                use:['style-loader','css-loader']
            }
        ]
    },
    plugins:[
        new HtmlWebpackPlugin({
            template:'./public/index.html'
        })
    ]
}